﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SimoBotConsole
{
    class startUp
    {
        Engine engine;
        public startUp(Engine SimoEngine)
        {
            engine = SimoEngine;
        }

        public bool connectQs()
        {
            Console.WriteLine("Run on default (Y) or set your own channel/server/etc? (N)");
            Console.WriteLine("Y/N?");
            string runOnDefaultCfg = Console.ReadLine();

            string server = "irc.quakenet.org";
            int port = 6667;
            string nick = "SimoBot";
            string channel = "#datism";

            if (runOnDefaultCfg == "N" || runOnDefaultCfg == "n")
            {
                Console.WriteLine("Trololo, didn't actually implement this xd");
            }

            Console.WriteLine("Run " + nick + "? (Y/N)");

            string derp = Console.ReadLine();
            if (derp != "Y" || derp != "y")
            {
                engine.RunIrc(server, port, channel, nick);
            }
            else
            {
                return false;
            }
            return true;
        }

    }
}
